
    var ns;
    var app = new Vue({
        el: '#app',
        data: {
            ID: 0,
            form: {},
            list: [],
            AddressDetailInfo:'',
        },
        methods: {
            get_data: function () {
                var that = this;
                ns.get({ action: 'getorderloginfo',OrderID:that.ID },
                   function (succeed, data, err) {
                       console.log(JSON.stringify(data));
                       console.log(JSON.stringify(err));
                   if (succeed) {
                       if(data.status){
                        that.list = data.data;
                       }
                   }else{
                    api.toast({
                        msg: err,
                        duration: 2000,
                        location: 'bottom'
                    });
                   }
                });
            },
            telPhone: function (telPhone) {
                var that = this;
                if (!telPhone || telPhone == undefined) {
                    ns.toast('电话号码为空');
                    return;
                }
                ns.openWin('tel:' + telPhone);
                return;
            },  
        }
    });
    apiready = function() {
        api.parseTapmode();
        ns = window.Foresight.Util;
        app.ID = api.pageParam.id;
        app.AddressDetailInfo=api.pageParam.AddressDetailInfo;
        app.get_data();
    };

    